home *** CD-ROM | disk | FTP | other *** search
/ ftp.hitl.washington.edu / ftp.hitl.washington.edu.tar / ftp.hitl.washington.edu / pub / people / tsoper / CT Explorer / TrackingSystemForm.cs < prev    next >
Text File  |  2005-05-23  |  43KB  |  1,004 lines

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. using PCIBird;
  7.  
  8. namespace SampleGUI
  9. {
  10.     /// <summary>
  11.     /// Summary description for TrackingSystemForm.
  12.     /// </summary>
  13.     public class TrackingSystemForm : System.Windows.Forms.Form
  14.     {
  15.         private System.Windows.Forms.TabControl tabctrl_TrackingSystem;
  16.         private System.Windows.Forms.ComboBox cbox_AgcMode;
  17.         private System.Windows.Forms.Label lbl_AgcMode;
  18.         private System.Windows.Forms.ComboBox cbox_PLFreq;
  19.         private System.Windows.Forms.Label lbl_PLFreq;
  20.         private System.Windows.Forms.RadioButton rbtn_Millimeters;
  21.         private System.Windows.Forms.RadioButton rbtn_Inches;
  22.         private System.Windows.Forms.NumericUpDown nud_MeasRate;
  23.         private System.Windows.Forms.Label lbl_MeasRate;
  24.         private System.Windows.Forms.GroupBox gbox_BoardParams;
  25.         private System.Windows.Forms.Label lbl_BoardSN;
  26.         private System.Windows.Forms.Label lbl_BoardType;
  27.         private System.Windows.Forms.Label lbl_BoardRev;
  28.         private System.Windows.Forms.Label lbl_BoardFN;
  29.         private System.Windows.Forms.Label lbl_BoardFR;
  30.         private System.Windows.Forms.Label lbl_BoardModel;
  31.         private System.Windows.Forms.TabPage tabpg_System;
  32.         private System.Windows.Forms.TabPage tabpg_Xmtr;
  33.         private System.Windows.Forms.GroupBox gbox_XmtrRF;
  34.         private System.Windows.Forms.GroupBox gbox_XmtrParams;
  35.         private System.Windows.Forms.Label lbl_XmtrSN;
  36.         private System.Windows.Forms.Label lbl_XmtrType;
  37.         private System.Windows.Forms.CheckBox chkbox_XmtrXYZRF;
  38.         private System.Windows.Forms.TextBox tbox_XmtrRFazim;
  39.         private System.Windows.Forms.TextBox tbox_XmtrRFelev;
  40.         private System.Windows.Forms.TextBox tbox_XmtrRFroll;
  41.         private System.Windows.Forms.TabPage[] tabpg_Sensor;
  42.         private System.Windows.Forms.GroupBox[] gbox_SensorAA;
  43.         private System.Windows.Forms.TextBox[] tbox_SensorAAroll;
  44.         private System.Windows.Forms.TextBox[] tbox_SensorAAelev;
  45.         private System.Windows.Forms.TextBox[] tbox_SensorAAazim;
  46.         private System.Windows.Forms.ComboBox[] cbox_SensorHemisphere;
  47.         private System.Windows.Forms.Label[] lbl_SensorHemisphere;
  48.         private System.Windows.Forms.GroupBox[] gbox_SensorQualParams;
  49.         private System.Windows.Forms.TextBox[] tbox_SensorSlope;
  50.         private System.Windows.Forms.TextBox[] tbox_SensorSens;
  51.         private System.Windows.Forms.TextBox[] tbox_SensorAlpha;
  52.         private System.Windows.Forms.TextBox[] tbox_SensorOffset;
  53.         private System.Windows.Forms.Label[] lbl_SensorSlope;
  54.         private System.Windows.Forms.Label[] lbl_SensorSens;
  55.         private System.Windows.Forms.Label[] lbl_SensorOffset;
  56.         private System.Windows.Forms.Label[] lbl_SensorAlpha;
  57.         private System.Windows.Forms.CheckBox[] chkbox_SensorACWN;
  58.         private System.Windows.Forms.CheckBox[] chkbox_SensorLC;
  59.         private System.Windows.Forms.CheckBox[] chkbox_SensorAO;
  60.         private System.Windows.Forms.TextBox[] tbox_SensorDCAdapt;
  61.         private System.Windows.Forms.Label[] lbl_SensorDCAdapt;
  62.         private System.Windows.Forms.TabControl[] tabctrl_SensorAlpha;
  63.         private System.Windows.Forms.TabPage[] tabpg_SensorAlphaMin;
  64.         private System.Windows.Forms.TabPage[] tabpg_SensorAlphaMax;
  65.         private System.Windows.Forms.TabPage[] tabpg_SensorVm;
  66.         private System.Windows.Forms.GroupBox[] gbox_SensorFilters;
  67.         private System.Windows.Forms.Label[] lbl_SensorSN;
  68.         private System.Windows.Forms.CheckBox[] chkbox_SensorACNN;
  69.         private System.Windows.Forms.TextBox[][] tbox_SensorAlphaMin;
  70.         private System.Windows.Forms.TextBox[][] tbox_SensorAlphaMax;
  71.         private System.Windows.Forms.TextBox[][] tbox_SensorVm;
  72.         private System.Windows.Forms.Button    btn_Update;
  73.  
  74.         private TrackingSystem trackingSystem;
  75.         private int numSensors;
  76.         /// <summary>
  77.         /// Required designer variable.
  78.         /// </summary>
  79.         private System.ComponentModel.Container components = null;
  80.  
  81.         public TrackingSystemForm(TrackingSystem ts)
  82.         {
  83.             //
  84.             // Required for Windows Form Designer support
  85.             //
  86.  
  87.             trackingSystem = ts;
  88.             numSensors = trackingSystem.GetNumberSensorsAttached();
  89.  
  90.             InitializeComponent();
  91.  
  92.             //
  93.             // TODO: Add any constructor code after InitializeComponent call
  94.             //
  95.         }
  96.  
  97.         /// <summary>
  98.         /// Clean up any resources being used.
  99.         /// </summary>
  100.         protected override void Dispose( bool disposing )
  101.         {
  102.             if( disposing )
  103.             {
  104.                 if(components != null)
  105.                 {
  106.                     components.Dispose();
  107.                 }
  108.             }
  109.             base.Dispose( disposing );
  110.         }
  111.  
  112.         #region Windows Form Designer generated code
  113.         /// <summary>
  114.         /// Required method for Designer support - do not modify
  115.         /// the contents of this method with the code editor.
  116.         /// </summary>
  117.         private void InitializeComponent()
  118.         {
  119.             this.tabctrl_TrackingSystem = new System.Windows.Forms.TabControl();
  120.             this.tabpg_System = new System.Windows.Forms.TabPage();
  121.             this.gbox_BoardParams = new System.Windows.Forms.GroupBox();
  122.             this.lbl_BoardModel = new System.Windows.Forms.Label();
  123.             this.lbl_BoardFR = new System.Windows.Forms.Label();
  124.             this.lbl_BoardFN = new System.Windows.Forms.Label();
  125.             this.lbl_BoardRev = new System.Windows.Forms.Label();
  126.             this.lbl_BoardType = new System.Windows.Forms.Label();
  127.             this.lbl_BoardSN = new System.Windows.Forms.Label();
  128.             this.nud_MeasRate = new System.Windows.Forms.NumericUpDown();
  129.             this.lbl_MeasRate = new System.Windows.Forms.Label();
  130.             this.rbtn_Inches = new System.Windows.Forms.RadioButton();
  131.             this.rbtn_Millimeters = new System.Windows.Forms.RadioButton();
  132.             this.cbox_PLFreq = new System.Windows.Forms.ComboBox();
  133.             this.lbl_PLFreq = new System.Windows.Forms.Label();
  134.             this.cbox_AgcMode = new System.Windows.Forms.ComboBox();
  135.             this.lbl_AgcMode = new System.Windows.Forms.Label();
  136.             this.tabpg_Xmtr = new System.Windows.Forms.TabPage();
  137.             this.gbox_XmtrParams = new System.Windows.Forms.GroupBox();
  138.             this.lbl_XmtrType = new System.Windows.Forms.Label();
  139.             this.lbl_XmtrSN = new System.Windows.Forms.Label();
  140.             this.chkbox_XmtrXYZRF = new System.Windows.Forms.CheckBox();
  141.             this.gbox_XmtrRF = new System.Windows.Forms.GroupBox();
  142.             this.tbox_XmtrRFroll = new System.Windows.Forms.TextBox();
  143.             this.tbox_XmtrRFelev = new System.Windows.Forms.TextBox();
  144.             this.tbox_XmtrRFazim = new System.Windows.Forms.TextBox();
  145.  
  146.             this.tabpg_Sensor = new System.Windows.Forms.TabPage[numSensors];
  147.             this.lbl_SensorDCAdapt = new System.Windows.Forms.Label[numSensors];
  148.             this.tbox_SensorDCAdapt = new System.Windows.Forms.TextBox[numSensors];
  149.             this.chkbox_SensorAO = new System.Windows.Forms.CheckBox[numSensors];
  150.             this.chkbox_SensorLC = new System.Windows.Forms.CheckBox[numSensors];
  151.             this.chkbox_SensorACNN = new System.Windows.Forms.CheckBox[numSensors];
  152.             this.chkbox_SensorACWN = new System.Windows.Forms.CheckBox[numSensors];
  153.             this.gbox_SensorQualParams = new System.Windows.Forms.GroupBox[numSensors];
  154.             this.lbl_SensorAlpha = new System.Windows.Forms.Label[numSensors];
  155.             this.lbl_SensorOffset = new System.Windows.Forms.Label[numSensors];
  156.             this.lbl_SensorSens = new System.Windows.Forms.Label[numSensors];
  157.             this.lbl_SensorSlope = new System.Windows.Forms.Label[numSensors];
  158.             this.tbox_SensorAlpha = new System.Windows.Forms.TextBox[numSensors];
  159.             this.tbox_SensorSens = new System.Windows.Forms.TextBox[numSensors];
  160.             this.tbox_SensorSlope = new System.Windows.Forms.TextBox[numSensors];
  161.             this.tbox_SensorOffset = new System.Windows.Forms.TextBox[numSensors];
  162.             this.cbox_SensorHemisphere = new System.Windows.Forms.ComboBox[numSensors];
  163.             this.gbox_SensorAA = new System.Windows.Forms.GroupBox[numSensors];
  164.             this.tbox_SensorAAroll = new System.Windows.Forms.TextBox[numSensors];
  165.             this.tbox_SensorAAelev = new System.Windows.Forms.TextBox[numSensors];
  166.             this.tbox_SensorAAazim = new System.Windows.Forms.TextBox[numSensors];
  167.             this.lbl_SensorHemisphere = new System.Windows.Forms.Label[numSensors];
  168.             this.gbox_SensorFilters = new System.Windows.Forms.GroupBox[numSensors];
  169.             this.tabctrl_SensorAlpha = new System.Windows.Forms.TabControl[numSensors];
  170.             this.tabpg_SensorAlphaMin = new System.Windows.Forms.TabPage[numSensors];
  171.             this.tabpg_SensorAlphaMax = new System.Windows.Forms.TabPage[numSensors];
  172.             this.tabpg_SensorVm = new System.Windows.Forms.TabPage[numSensors];
  173.             this.lbl_SensorSN = new System.Windows.Forms.Label[numSensors];
  174.             this.tbox_SensorAlphaMin = new System.Windows.Forms.TextBox[numSensors][];
  175.             this.tbox_SensorAlphaMax = new System.Windows.Forms.TextBox[numSensors][];
  176.             this.tbox_SensorVm = new System.Windows.Forms.TextBox[numSensors][];
  177.             for(int i = 0; i < numSensors; i++)
  178.             {
  179.                 this.tabpg_Sensor[i] = new System.Windows.Forms.TabPage();
  180.                 this.tabpg_Sensor[i] = new System.Windows.Forms.TabPage();
  181.                 this.lbl_SensorDCAdapt[i] = new System.Windows.Forms.Label();
  182.                 this.tbox_SensorDCAdapt[i] = new System.Windows.Forms.TextBox();
  183.                 this.chkbox_SensorAO[i] = new System.Windows.Forms.CheckBox();
  184.                 this.chkbox_SensorLC[i] = new System.Windows.Forms.CheckBox();
  185.                 this.chkbox_SensorACNN[i] = new System.Windows.Forms.CheckBox();
  186.                 this.chkbox_SensorACWN[i] = new System.Windows.Forms.CheckBox();
  187.                 this.gbox_SensorQualParams[i] = new System.Windows.Forms.GroupBox();
  188.                 this.lbl_SensorAlpha[i] = new System.Windows.Forms.Label();
  189.                 this.lbl_SensorOffset[i] = new System.Windows.Forms.Label();
  190.                 this.lbl_SensorSens[i] = new System.Windows.Forms.Label();
  191.                 this.lbl_SensorSlope[i] = new System.Windows.Forms.Label();
  192.                 this.tbox_SensorAlpha[i] = new System.Windows.Forms.TextBox();
  193.                 this.tbox_SensorSens[i] = new System.Windows.Forms.TextBox();
  194.                 this.tbox_SensorSlope[i] = new System.Windows.Forms.TextBox();
  195.                 this.tbox_SensorOffset[i] = new System.Windows.Forms.TextBox();
  196.                 this.cbox_SensorHemisphere[i] = new System.Windows.Forms.ComboBox();
  197.                 this.gbox_SensorAA[i] = new System.Windows.Forms.GroupBox();
  198.                 this.tbox_SensorAAroll[i] = new System.Windows.Forms.TextBox();
  199.                 this.tbox_SensorAAelev[i] = new System.Windows.Forms.TextBox();
  200.                 this.tbox_SensorAAazim[i] = new System.Windows.Forms.TextBox();
  201.                 this.lbl_SensorHemisphere[i] = new System.Windows.Forms.Label();
  202.                 this.gbox_SensorFilters[i] = new System.Windows.Forms.GroupBox();
  203.                 this.tabctrl_SensorAlpha[i] = new System.Windows.Forms.TabControl();
  204.                 this.tabpg_SensorAlphaMin[i] = new System.Windows.Forms.TabPage();
  205.                 this.tabpg_SensorAlphaMax[i] = new System.Windows.Forms.TabPage();
  206.                 this.tabpg_SensorVm[i] = new System.Windows.Forms.TabPage();
  207.                 this.lbl_SensorSN[i] = new System.Windows.Forms.Label();
  208.                 this.tbox_SensorAlphaMin[i] = new System.Windows.Forms.TextBox[7];
  209.                 this.tbox_SensorAlphaMax[i] = new System.Windows.Forms.TextBox[7];
  210.                 this.tbox_SensorVm[i] = new System.Windows.Forms.TextBox[7];
  211.                 for( int ii = 0; ii < 7; ii++)
  212.                 {
  213.                     this.tbox_SensorAlphaMin[i][ii] = new System.Windows.Forms.TextBox();
  214.                     this.tbox_SensorAlphaMax[i][ii] = new System.Windows.Forms.TextBox();
  215.                     this.tbox_SensorVm[i][ii] = new System.Windows.Forms.TextBox();
  216.                 }
  217.             }
  218.                     
  219.  
  220.             
  221.             this.tabctrl_TrackingSystem.SuspendLayout();
  222.             this.tabpg_System.SuspendLayout();
  223.             this.gbox_BoardParams.SuspendLayout();
  224.             ((System.ComponentModel.ISupportInitialize)(this.nud_MeasRate)).BeginInit();
  225.             this.tabpg_Xmtr.SuspendLayout();
  226.             this.gbox_XmtrParams.SuspendLayout();
  227.             this.gbox_XmtrRF.SuspendLayout();
  228.             for(int i = 0; i < numSensors; i++)
  229.             {
  230.                 this.tabpg_Sensor[i].SuspendLayout();
  231.                 this.gbox_SensorQualParams[i].SuspendLayout();
  232.                 this.gbox_SensorAA[i].SuspendLayout();
  233.                 this.gbox_SensorFilters[i].SuspendLayout();
  234.                 this.tabctrl_SensorAlpha[i].SuspendLayout();
  235.             }
  236.             this.SuspendLayout();
  237.             // 
  238.             // tabctrl_TrackingSystem
  239.             // 
  240.             this.tabctrl_TrackingSystem.Controls.Add(this.tabpg_System);
  241.             this.tabctrl_TrackingSystem.Controls.Add(this.tabpg_Xmtr);
  242.             for(int i = 0; i < numSensors; i++)
  243.                 this.tabctrl_TrackingSystem.Controls.Add(this.tabpg_Sensor[i]);
  244.             
  245.             //this.tabctrl_TrackingSystem.Dock = System.Windows.Forms.DockStyle.Fill;
  246.             this.tabctrl_TrackingSystem.Location = new System.Drawing.Point(0, 0);
  247.             this.tabctrl_TrackingSystem.Name = "tabctrl_TrackingSystem";
  248.             this.tabctrl_TrackingSystem.SelectedIndex = 0;
  249.             this.tabctrl_TrackingSystem.Size = new System.Drawing.Size(776, 198);
  250.             this.tabctrl_TrackingSystem.TabIndex = 0;
  251.             this.tabctrl_TrackingSystem.SelectedIndexChanged += new System.EventHandler(this.tabctrl_TrackingSystem_SelectedIndexChanged);
  252.             // 
  253.             // tabpg_System
  254.             // 
  255.             this.tabpg_System.Controls.Add(this.gbox_BoardParams);
  256.             this.tabpg_System.Controls.Add(this.nud_MeasRate);
  257.             this.tabpg_System.Controls.Add(this.lbl_MeasRate);
  258.             this.tabpg_System.Controls.Add(this.rbtn_Inches);
  259.             this.tabpg_System.Controls.Add(this.rbtn_Millimeters);
  260.             this.tabpg_System.Controls.Add(this.cbox_PLFreq);
  261.             this.tabpg_System.Controls.Add(this.lbl_PLFreq);
  262.             this.tabpg_System.Controls.Add(this.cbox_AgcMode);
  263.             this.tabpg_System.Controls.Add(this.lbl_AgcMode);
  264.             this.tabpg_System.Location = new System.Drawing.Point(4, 22);
  265.             this.tabpg_System.Name = "tabpg_System";
  266.             this.tabpg_System.Size = new System.Drawing.Size(584, 172);
  267.             this.tabpg_System.TabIndex = 0;
  268.             this.tabpg_System.Text = "System";
  269.             this.tabpg_System.Click += new System.EventHandler(this.tabPage1_Click);
  270.             // 
  271.             // gbox_BoardParams
  272.             // 
  273.             this.gbox_BoardParams.Controls.Add(this.lbl_BoardModel);
  274.             this.gbox_BoardParams.Controls.Add(this.lbl_BoardFR);
  275.             this.gbox_BoardParams.Controls.Add(this.lbl_BoardFN);
  276.             this.gbox_BoardParams.Controls.Add(this.lbl_BoardRev);
  277.             this.gbox_BoardParams.Controls.Add(this.lbl_BoardType);
  278.             this.gbox_BoardParams.Controls.Add(this.lbl_BoardSN);
  279.             this.gbox_BoardParams.Location = new System.Drawing.Point(336, 8);
  280.             this.gbox_BoardParams.Name = "gbox_BoardParams";
  281.             this.gbox_BoardParams.Size = new System.Drawing.Size(220, 128);
  282.             this.gbox_BoardParams.TabIndex = 8;
  283.             this.gbox_BoardParams.TabStop = false;
  284.             this.gbox_BoardParams.Text = "Board Parameters";
  285.             // 
  286.             // lbl_BoardModel
  287.             // 
  288.             this.lbl_BoardModel.Location = new System.Drawing.Point(73, 96);
  289.             this.lbl_BoardModel.Name = "lbl_BoardModel";
  290.             this.lbl_BoardModel.Size  = new System.Drawing.Size(104, 23);
  291.             this.lbl_BoardModel.TabIndex = 5;
  292.             // 
  293.             // lbl_BoardFR
  294.             // 
  295.             this.lbl_BoardFR.Location = new System.Drawing.Point(16, 80);
  296.             this.lbl_BoardFR.Name = "lbl_BoardFR";
  297.             this.lbl_BoardFR.Size = new System.Drawing.Size(120, 23);
  298.             this.lbl_BoardFR.TabIndex = 4;
  299.             // 
  300.             // lbl_BoardFN
  301.             // 
  302.             this.lbl_BoardFN.Location = new System.Drawing.Point(20, 64);
  303.             this.lbl_BoardFN.Name = "lbl_BoardFN";
  304.             this.lbl_BoardFN.Size = new System.Drawing.Size(120, 23);
  305.             this.lbl_BoardFN.TabIndex = 3;
  306.             // 
  307.             // lbl_BoardRev
  308.             // 
  309.             this.lbl_BoardRev.Location = new System.Drawing.Point(61, 48);
  310.             this.lbl_BoardRev.Name = "lbl_BoardRev";
  311.             this.lbl_BoardRev.TabIndex = 2;
  312.             this.lbl_BoardRev.Click += new System.EventHandler(this.label1_Click_1);
  313.             // 
  314.             // lbl_BoardType
  315.             // 
  316.             this.lbl_BoardType.Location = new System.Drawing.Point(78, 32);
  317.             this.lbl_BoardType.Name = "lbl_BoardType";
  318.             this.lbl_BoardType.Size = new System.Drawing.Size(130, 24);
  319.             this.lbl_BoardType.TabIndex = 1;
  320.             // 
  321.             // lbl_BoardSN
  322.             // 
  323.             this.lbl_BoardSN.Location = new System.Drawing.Point(36, 16);
  324.             this.lbl_BoardSN.Name = "lbl_BoardSN";
  325.             this.lbl_BoardSN.Size = new System.Drawing.Size(144, 24);
  326.             this.lbl_BoardSN.TabIndex = 0;
  327.             // 
  328.             // nud_MeasRate
  329.             // 
  330.             this.nud_MeasRate.DecimalPlaces = 2;
  331.             this.nud_MeasRate.Location = new System.Drawing.Point(216, 88);
  332.             this.nud_MeasRate.Name = "nud_MeasRate";
  333.             this.nud_MeasRate.Size = new System.Drawing.Size(72, 20);
  334.             this.nud_MeasRate.TabIndex = 6;
  335.             this.nud_MeasRate.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
  336.             // 
  337.             // lbl_MeasRate
  338.             // 
  339.             this.lbl_MeasRate.Location = new System.Drawing.Point(216, 72);
  340.             this.lbl_MeasRate.Name = "lbl_MeasRate";
  341.             this.lbl_MeasRate.TabIndex = 7;
  342.             this.lbl_MeasRate.Text = "Measurement Rate";
  343.             // 
  344.             // rbtn_Inches
  345.             // 
  346.             this.rbtn_Inches.Location = new System.Drawing.Point(216, 40);
  347.             this.rbtn_Inches.Name = "rbtn_Inches";
  348.             this.rbtn_Inches.TabIndex = 5;
  349.             this.rbtn_Inches.Text = "Inches";
  350.             this.rbtn_Inches.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
  351.             // 
  352.             // rbtn_Millimeters
  353.             // 
  354.             this.rbtn_Millimeters.Location = new System.Drawing.Point(216, 16);
  355.             this.rbtn_Millimeters.Name = "rbtn_Millimeters";
  356.             this.rbtn_Millimeters.TabIndex = 4;
  357.             this.rbtn_Millimeters.Text = "Millimeters";
  358.             // 
  359.             // cbox_PLFreq
  360.             // 
  361.             this.cbox_PLFreq.Items.AddRange(new object[] {
  362.                                                              "60",
  363.                                                              "50"});
  364.             this.cbox_PLFreq.Location = new System.Drawing.Point(16, 96);
  365.             this.cbox_PLFreq.Name = "cbox_PLFreq";
  366.             this.cbox_PLFreq.Size = new System.Drawing.Size(64, 21);
  367.             this.cbox_PLFreq.TabIndex = 2;
  368.             // 
  369.             // lbl_PLFreq
  370.             // 
  371.             this.lbl_PLFreq.Location = new System.Drawing.Point(16, 80);
  372.             this.lbl_PLFreq.Name = "lbl_PLFreq";
  373.             this.lbl_PLFreq.Size = new System.Drawing.Size(152, 24);
  374.             this.lbl_PLFreq.TabIndex = 3;
  375.             this.lbl_PLFreq.Text = "Power Line Frequency";
  376.             // 
  377.             // cbox_AgcMode
  378.             // 
  379.             this.cbox_AgcMode.Items.AddRange(new object[] {
  380.                                                               "Transmitter and Sensor",
  381.                                                               "Sensor Only"});
  382.             this.cbox_AgcMode.Location = new System.Drawing.Point(16, 32);
  383.             this.cbox_AgcMode.Name = "cbox_AgcMode";
  384.             this.cbox_AgcMode.Size = new System.Drawing.Size(160, 21);
  385.             this.cbox_AgcMode.TabIndex = 0;
  386.             this.cbox_AgcMode.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
  387.             // 
  388.             // lbl_AgcMode
  389.             // 
  390.             this.lbl_AgcMode.Location = new System.Drawing.Point(16, 16);
  391.             this.lbl_AgcMode.Name = "lbl_AgcMode";
  392.             this.lbl_AgcMode.Size = new System.Drawing.Size(152, 24);
  393.             this.lbl_AgcMode.TabIndex = 1;
  394.             this.lbl_AgcMode.Text = "AGC Mode";
  395.             this.lbl_AgcMode.Click += new System.EventHandler(this.label1_Click);
  396.             // 
  397.             // tabpg_Xmtr
  398.             // 
  399.             this.tabpg_Xmtr.Controls.Add(this.gbox_XmtrParams);
  400.             this.tabpg_Xmtr.Controls.Add(this.chkbox_XmtrXYZRF);
  401.             this.tabpg_Xmtr.Controls.Add(this.gbox_XmtrRF);
  402.             this.tabpg_Xmtr.Location = new System.Drawing.Point(4, 22);
  403.             this.tabpg_Xmtr.Name = "tabpg_Xmtr";
  404.             this.tabpg_Xmtr.Size = new System.Drawing.Size(752, 172);
  405.             this.tabpg_Xmtr.TabIndex = 1;
  406.             this.tabpg_Xmtr.Text = "Transmitter";
  407.             // 
  408.             // gbox_XmtrParams
  409.             // 
  410.             this.gbox_XmtrParams.Controls.Add(this.lbl_XmtrType);
  411.             this.gbox_XmtrParams.Controls.Add(this.lbl_XmtrSN);
  412.             this.gbox_XmtrParams.Location = new System.Drawing.Point(240, 24);
  413.             this.gbox_XmtrParams.Name = "gbox_XmtrParams";
  414.             this.gbox_XmtrParams.Size = new System.Drawing.Size(240, 80);
  415.             this.gbox_XmtrParams.TabIndex = 2;
  416.             this.gbox_XmtrParams.TabStop = false;
  417.             this.gbox_XmtrParams.Text = "Transmitter Parameters";
  418.             // 
  419.             // lbl_XmtrType
  420.             // 
  421.             this.lbl_XmtrType.Location = new System.Drawing.Point(58, 40);
  422.             this.lbl_XmtrType.Name = "lbl_XmtrType";
  423.             this.lbl_XmtrType.Size = new System.Drawing.Size(180,24);
  424.             this.lbl_XmtrType.TabIndex = 1;
  425.             // 
  426.             // lbl_XmtrSN
  427.             // 
  428.             this.lbl_XmtrSN.Location = new System.Drawing.Point(16, 24);
  429.             this.lbl_XmtrSN.Name = "lbl_XmtrSN";
  430.             this.lbl_XmtrSN.TabIndex = 0;
  431.             // 
  432.             // chkbox_XmtrXYZRF
  433.             // 
  434.             this.chkbox_XmtrXYZRF.Location = new System.Drawing.Point(24, 120);
  435.             this.chkbox_XmtrXYZRF.Name = "chkbox_XmtrXYZRF";
  436.             this.chkbox_XmtrXYZRF.Size = new System.Drawing.Size(136, 24);
  437.             this.chkbox_XmtrXYZRF.TabIndex = 1;
  438.             this.chkbox_XmtrXYZRF.Text = "XYZ Reference Frame";
  439.             // 
  440.             // gbox_XmtrRF
  441.             // 
  442.             this.gbox_XmtrRF.Controls.Add(this.tbox_XmtrRFroll);
  443.             this.gbox_XmtrRF.Controls.Add(this.tbox_XmtrRFelev);
  444.             this.gbox_XmtrRF.Controls.Add(this.tbox_XmtrRFazim);
  445.             this.gbox_XmtrRF.Location = new System.Drawing.Point(16, 24);
  446.             this.gbox_XmtrRF.Name = "gbox_XmtrRF";
  447.             this.gbox_XmtrRF.Size = new System.Drawing.Size(200, 88);
  448.             this.gbox_XmtrRF.TabIndex = 0;
  449.             this.gbox_XmtrRF.TabStop = false;
  450.             this.gbox_XmtrRF.Text = "Reference Frame";
  451.             // 
  452.             // tbox_XmtrRFroll
  453.             // 
  454.             this.tbox_XmtrRFroll.Location = new System.Drawing.Point(136, 32);
  455.             this.tbox_XmtrRFroll.Name = "tbox_XmtrRFroll";
  456.             this.tbox_XmtrRFroll.Size = new System.Drawing.Size(56, 20);
  457.             this.tbox_XmtrRFroll.TabIndex = 2;
  458.             // 
  459.             // tbox_XmtrRFelev
  460.             // 
  461.             this.tbox_XmtrRFelev.Location = new System.Drawing.Point(72, 32);
  462.             this.tbox_XmtrRFelev.Name = "tbox_XmtrRFelev";
  463.             this.tbox_XmtrRFelev.Size = new System.Drawing.Size(52, 20);
  464.             this.tbox_XmtrRFelev.TabIndex = 1;
  465.             // 
  466.             // tbox_XmtrRFazim
  467.             // 
  468.             this.tbox_XmtrRFazim.Location = new System.Drawing.Point(8, 32);
  469.             this.tbox_XmtrRFazim.Name = "tbox_XmtrRFazim";
  470.             this.tbox_XmtrRFazim.Size = new System.Drawing.Size(48, 20);
  471.             this.tbox_XmtrRFazim.TabIndex = 0;
  472.             this.tbox_XmtrRFazim.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
  473.             // 
  474.             // tabpg_Sensor
  475.             // 
  476.             for(int i = 0; i < numSensors; i++)
  477.             {
  478.                 this.tabpg_Sensor[i].Controls.Add(this.lbl_SensorDCAdapt[i]);
  479.                 this.tabpg_Sensor[i].Controls.Add(this.tbox_SensorDCAdapt[i]);
  480.                 this.tabpg_Sensor[i].Controls.Add(this.chkbox_SensorAO[i]);
  481.                 this.tabpg_Sensor[i].Controls.Add(this.chkbox_SensorLC[i]);
  482.                 this.tabpg_Sensor[i].Controls.Add(this.chkbox_SensorACNN[i]);
  483.                 this.tabpg_Sensor[i].Controls.Add(this.chkbox_SensorACWN[i]);
  484.                 this.tabpg_Sensor[i].Controls.Add(this.gbox_SensorQualParams[i]);
  485.                 this.tabpg_Sensor[i].Controls.Add(this.cbox_SensorHemisphere[i]);
  486.                 this.tabpg_Sensor[i].Controls.Add(this.gbox_SensorAA[i]);
  487.                 this.tabpg_Sensor[i].Controls.Add(this.lbl_SensorHemisphere[i]);
  488.                 this.tabpg_Sensor[i].Controls.Add(this.gbox_SensorFilters[i]);
  489.                 this.tabpg_Sensor[i].Controls.Add(this.lbl_SensorSN[i]);
  490.                 this.tabpg_Sensor[i].Location = new System.Drawing.Point(4, 22);
  491.                 this.tabpg_Sensor[i].Name = "tabpg_Sensor" + i.ToString();
  492.                 this.tabpg_Sensor[i].Size = new System.Drawing.Size(728, 172);
  493.                 this.tabpg_Sensor[i].TabIndex = 2+i;
  494.                 this.tabpg_Sensor[i].Text = "Sensor " + (i+1).ToString();
  495.                 // 
  496.                 // lbl_SensorDCAdapt
  497.                 // 
  498.                 this.lbl_SensorDCAdapt[i].Location = new System.Drawing.Point(416, 128);
  499.                 this.lbl_SensorDCAdapt[i].Name = "lbl_SensorDCAdapt";
  500.                 this.lbl_SensorDCAdapt[i].TabIndex = 12;
  501.                 this.lbl_SensorDCAdapt[i].Text = "DC Adaptive";
  502.                 // 
  503.                 // tbox_SensorDCAdapt
  504.                 // 
  505.                 this.tbox_SensorDCAdapt[i].Location = new System.Drawing.Point(368, 128);
  506.                 this.tbox_SensorDCAdapt[i].Name = "tbox_SensorDCAdapt";
  507.                 this.tbox_SensorDCAdapt[i].Size = new System.Drawing.Size(48, 20);
  508.                 this.tbox_SensorDCAdapt[i].TabIndex = 11;
  509.  
  510.                 // 
  511.                 // chkbox_SensorAO
  512.                 // 
  513.                 this.chkbox_SensorAO[i].Location = new System.Drawing.Point(368, 96);
  514.                 this.chkbox_SensorAO[i].Name = "chkbox_SensorAO";
  515.                 this.chkbox_SensorAO[i].Size = new System.Drawing.Size(120, 24);
  516.                 this.chkbox_SensorAO[i].TabIndex = 10;
  517.                 this.chkbox_SensorAO[i].Text = "Alpha On";
  518.                 // 
  519.                 // chkbox_SensorLC
  520.                 // 
  521.                 this.chkbox_SensorLC[i].Location = new System.Drawing.Point(368, 72);
  522.                 this.chkbox_SensorLC[i].Name = "chkbox_SensorLC";
  523.                 this.chkbox_SensorLC[i].Size = new System.Drawing.Size(120, 24);
  524.                 this.chkbox_SensorLC[i].TabIndex = 9;
  525.                 this.chkbox_SensorLC[i].Text = "Large Change";
  526.                 // 
  527.                 // chkbox_SensorACNN
  528.                 // 
  529.                 this.chkbox_SensorACNN[i].Location = new System.Drawing.Point(368, 48);
  530.                 this.chkbox_SensorACNN[i].Name = "chkbox_SensorACNN";
  531.                 this.chkbox_SensorACNN[i].Size = new System.Drawing.Size(120, 24);
  532.                 this.chkbox_SensorACNN[i].TabIndex = 8;
  533.                 this.chkbox_SensorACNN[i].Text = "AC Narrow Notch";
  534.                 // 
  535.                 // chkbox_SensorACWN
  536.                 // 
  537.                 this.chkbox_SensorACWN[i].Location = new System.Drawing.Point(368, 24);
  538.                 this.chkbox_SensorACWN[i].Name = "chkbox_SensorACWN";
  539.                 this.chkbox_SensorACWN[i].TabIndex = 7;
  540.                 this.chkbox_SensorACWN[i].Text = "AC Wide Notch";
  541.                 // 
  542.                 // gbox_SensorQualParams
  543.                 // 
  544.                 this.gbox_SensorQualParams[i].Controls.Add(this.lbl_SensorAlpha[i]);
  545.                 this.gbox_SensorQualParams[i].Controls.Add(this.lbl_SensorOffset[i]);
  546.                 this.gbox_SensorQualParams[i].Controls.Add(this.lbl_SensorSens[i]);
  547.                 this.gbox_SensorQualParams[i].Controls.Add(this.lbl_SensorSlope[i]);
  548.                 this.gbox_SensorQualParams[i].Controls.Add(this.tbox_SensorAlpha[i]);
  549.                 this.gbox_SensorQualParams[i].Controls.Add(this.tbox_SensorSens[i]);
  550.                 this.gbox_SensorQualParams[i].Controls.Add(this.tbox_SensorSlope[i]);
  551.                 this.gbox_SensorQualParams[i].Controls.Add(this.tbox_SensorOffset[i]);
  552.                 this.gbox_SensorQualParams[i].Location = new System.Drawing.Point(224, 8);
  553.                 this.gbox_SensorQualParams[i].Name = "gbox_SensorQualParams";
  554.                 this.gbox_SensorQualParams[i].Size = new System.Drawing.Size(128, 152);
  555.                 this.gbox_SensorQualParams[i].TabIndex = 6;
  556.                 this.gbox_SensorQualParams[i].TabStop = false;
  557.                 this.gbox_SensorQualParams[i].Text = "Quality Parameters";
  558.                 // 
  559.                 // lbl_SensorAlpha
  560.                 // 
  561.                 this.lbl_SensorAlpha[i].Location = new System.Drawing.Point(24, 96);
  562.                 this.lbl_SensorAlpha[i].Name = "lbl_SensorAlpha";
  563.                 this.lbl_SensorAlpha[i].Size = new System.Drawing.Size(40, 23);
  564.                 this.lbl_SensorAlpha[i].TabIndex = 11;
  565.                 this.lbl_SensorAlpha[i].Text = "Alpha";
  566.                 // 
  567.                 // lbl_SensorOffset
  568.                 // 
  569.                 this.lbl_SensorOffset[i].Location = new System.Drawing.Point(24, 72);
  570.                 this.lbl_SensorOffset[i].Name = "lbl_SensorOffset";
  571.                 this.lbl_SensorOffset[i].Size = new System.Drawing.Size(40, 23);
  572.                 this.lbl_SensorOffset[i].TabIndex = 10;
  573.                 this.lbl_SensorOffset[i].Text = "Offset";
  574.                 // 
  575.                 // lbl_SensorSens
  576.                 // 
  577.                 this.lbl_SensorSens[i].Location = new System.Drawing.Point(8, 48);
  578.                 this.lbl_SensorSens[i].Name = "lbl_SensorSens";
  579.                 this.lbl_SensorSens[i].Size = new System.Drawing.Size(56, 23);
  580.                 this.lbl_SensorSens[i].TabIndex = 9;
  581.                 this.lbl_SensorSens[i].Text = "Sensitivity";
  582.                 // 
  583.                 // lbl_SensorSlope
  584.                 // 
  585.                 this.lbl_SensorSlope[i].Location = new System.Drawing.Point(24, 24);
  586.                 this.lbl_SensorSlope[i].Name = "lbl_SensorSlope";
  587.                 this.lbl_SensorSlope[i].Size = new System.Drawing.Size(48, 23);
  588.                 this.lbl_SensorSlope[i].TabIndex = 8;
  589.                 this.lbl_SensorSlope[i].Text = "  Slope";
  590.                 this.lbl_SensorSlope[i].Click += new System.EventHandler(this.lbl_SensorSlope_Click);
  591.                 // 
  592.                 // tbox_SensorAlpha
  593.                 // 
  594.                 this.tbox_SensorAlpha[i].Location = new System.Drawing.Point(72, 96);
  595.                 this.tbox_SensorAlpha[i].Name = "tbox_SensorAlpha";
  596.                 this.tbox_SensorAlpha[i].Size = new System.Drawing.Size(48, 20);
  597.                 this.tbox_SensorAlpha[i].TabIndex = 6;
  598.                 // 
  599.                 // tbox_SensorSens
  600.                 // 
  601.                 this.tbox_SensorSens[i].Location = new System.Drawing.Point(72, 48);
  602.                 this.tbox_SensorSens[i].Name = "tbox_SensorSens";
  603.                 this.tbox_SensorSens[i].Size = new System.Drawing.Size(48, 20);
  604.                 this.tbox_SensorSens[i].TabIndex = 5;
  605.                 // 
  606.                 // tbox_SensorSlope
  607.                 // 
  608.                 this.tbox_SensorSlope[i].Location = new System.Drawing.Point(72, 24);
  609.                 this.tbox_SensorSlope[i].Name = "tbox_SensorSlope";
  610.                 this.tbox_SensorSlope[i].Size = new System.Drawing.Size(48, 20);
  611.                 this.tbox_SensorSlope[i].TabIndex = 4;
  612.                 // 
  613.                 // tbox_SensorOffset
  614.                 // 
  615.                 this.tbox_SensorOffset[i].Location = new System.Drawing.Point(72, 72);
  616.                 this.tbox_SensorOffset[i].Name = "tbox_SensorOffset";
  617.                 this.tbox_SensorOffset[i].Size = new System.Drawing.Size(48, 20);
  618.                 this.tbox_SensorOffset[i].TabIndex = 7;
  619.                 // 
  620.                 // cbox_SensorHemisphere
  621.                 // 
  622.                 this.cbox_SensorHemisphere[i].Items.AddRange(new object[] {
  623.                                                                         "Front",
  624.                                                                         "Back",
  625.                                                                         "Top",
  626.                                                                         "Bottom",
  627.                                                                         "Left",
  628.                                                                         "Right"});
  629.                 this.cbox_SensorHemisphere[i].Location = new System.Drawing.Point(16, 96);
  630.                 this.cbox_SensorHemisphere[i].Name = "cbox_SensorHemisphere";
  631.                 this.cbox_SensorHemisphere[i].Size = new System.Drawing.Size(121, 21);
  632.                 this.cbox_SensorHemisphere[i].TabIndex = 4;
  633.                 // 
  634.                 // gbox_SensorAA
  635.                 // 
  636.                 this.gbox_SensorAA[i].Controls.Add(this.tbox_SensorAAroll[i]);
  637.                 this.gbox_SensorAA[i].Controls.Add(this.tbox_SensorAAelev[i]);
  638.                 this.gbox_SensorAA[i].Controls.Add(this.tbox_SensorAAazim[i]);
  639.                 this.gbox_SensorAA[i].Location = new System.Drawing.Point(8, 16);
  640.                 this.gbox_SensorAA[i].Name = "gbox_SensorAA";
  641.                 this.gbox_SensorAA[i].Size = new System.Drawing.Size(208, 56);
  642.                 this.gbox_SensorAA[i].TabIndex = 3;
  643.                 this.gbox_SensorAA[i].TabStop = false;
  644.                 this.gbox_SensorAA[i].Text = "Angle Align";
  645.                 // 
  646.                 // tbox_SensorAAroll
  647.                 // 
  648.                 this.tbox_SensorAAroll[i].Location = new System.Drawing.Point(136, 16);
  649.                 this.tbox_SensorAAroll[i].Name = "tbox_SensorAAroll";
  650.                 this.tbox_SensorAAroll[i].Size = new System.Drawing.Size(56, 20);
  651.                 this.tbox_SensorAAroll[i].TabIndex = 5;
  652.                 // 
  653.                 // tbox_SensorAAelev
  654.                 // 
  655.                 this.tbox_SensorAAelev[i].Location = new System.Drawing.Point(72, 16);
  656.                 this.tbox_SensorAAelev[i].Name = "tbox_SensorAAelev";
  657.                 this.tbox_SensorAAelev[i].Size = new System.Drawing.Size(52, 20);
  658.                 this.tbox_SensorAAelev[i].TabIndex = 4;
  659.                 // 
  660.                 // tbox_SensorAAazim
  661.                 // 
  662.                 this.tbox_SensorAAazim[i].Location = new System.Drawing.Point(8, 16);
  663.                 this.tbox_SensorAAazim[i].Name = "tbox_SensorAAazim";
  664.                 this.tbox_SensorAAazim[i].Size = new System.Drawing.Size(48, 20);
  665.                 this.tbox_SensorAAazim[i].TabIndex = 3;
  666.                 // 
  667.                 // lbl_SensorHemisphere
  668.                 // 
  669.                 this.lbl_SensorHemisphere[i].Location = new System.Drawing.Point(16, 80);
  670.                 this.lbl_SensorHemisphere[i].Name = "lbl_SensorHemisphere";
  671.                 this.lbl_SensorHemisphere[i].TabIndex = 5;
  672.                 this.lbl_SensorHemisphere[i].Text = "Hemisphere";
  673.                 // 
  674.                 // gbox_SensorFilters
  675.                 // 
  676.                 this.gbox_SensorFilters[i].Controls.Add(this.tabctrl_SensorAlpha[i]);
  677.                 this.gbox_SensorFilters[i].Location = new System.Drawing.Point(360, 8);
  678.                 this.gbox_SensorFilters[i].Name = "gbox_SensorFilters";
  679.                 this.gbox_SensorFilters[i].Size = new System.Drawing.Size(400, 152);
  680.                 this.gbox_SensorFilters[i].TabIndex = 14;
  681.                 this.gbox_SensorFilters[i].TabStop = false;
  682.                 this.gbox_SensorFilters[i].Text = "Filters";
  683.                 this.gbox_SensorFilters[i].Enter += new System.EventHandler(this.groupBox1_Enter);
  684.                 // 
  685.                 // tabctrl_SensorAlpha
  686.                 // 
  687.                 this.tabctrl_SensorAlpha[i].Controls.Add(this.tabpg_SensorAlphaMin[i]);
  688.                 this.tabctrl_SensorAlpha[i].Controls.Add(this.tabpg_SensorAlphaMax[i]);
  689.                 this.tabctrl_SensorAlpha[i].Controls.Add(this.tabpg_SensorVm[i]);
  690.                 this.tabctrl_SensorAlpha[i].Location = new System.Drawing.Point(136, 16);
  691.                 this.tabctrl_SensorAlpha[i].Name = "tabctrl_SensorAlpha";
  692.                 this.tabctrl_SensorAlpha[i].SelectedIndex = 0;
  693.                 this.tabctrl_SensorAlpha[i].Size = new System.Drawing.Size(256, 100);
  694.                 this.tabctrl_SensorAlpha[i].TabIndex = 13;
  695.                 this.tabctrl_SensorAlpha[i].SelectedIndexChanged += new System.EventHandler(this.tabctrl_SensorAlpha_SelectedIndexChanged);
  696.                 // 
  697.                 // tabpg_SensorAlphaMin
  698.                 // 
  699.                 for(int ii = 0; ii < 7; ii++)
  700.                     this.tabpg_SensorAlphaMin[i].Controls.Add(this.tbox_SensorAlphaMin[i][ii]);
  701.                 this.tabpg_SensorAlphaMin[i].Location = new System.Drawing.Point(4, 22);
  702.                 this.tabpg_SensorAlphaMin[i].Name = "tabpg_SensorAlphaMin";
  703.                 this.tabpg_SensorAlphaMin[i].Size = new System.Drawing.Size(208, 74);
  704.                 this.tabpg_SensorAlphaMin[i].TabIndex = 0;
  705.                 this.tabpg_SensorAlphaMin[i].Text = "Alpha Min";
  706.                 //
  707.                 //tbox_SensorAlphaMin
  708.                 //
  709.                 for(int ii = 0; ii < 7; ii++)
  710.                 {
  711.                     this.tbox_SensorAlphaMin[i][ii].Location = new System.Drawing.Point(35*ii,24);
  712.                     this.tbox_SensorAlphaMin[i][ii].Name = "tbox_SensorAlphaMin";
  713.                     this.tbox_SensorAlphaMin[i][ii].Size = new System.Drawing.Size(35, 20);
  714.                     this.tbox_SensorAlphaMin[i][ii].TabIndex = 3;
  715.                 }
  716.  
  717.                 // 
  718.                 // tabpg_SensorAlphaMax
  719.                 // 
  720.                 for(int ii = 0; ii < 7; ii++)
  721.                     this.tabpg_SensorAlphaMax[i].Controls.Add(this.tbox_SensorAlphaMax[i][ii]);
  722.                 this.tabpg_SensorAlphaMax[i].Location = new System.Drawing.Point(4, 22);
  723.                 this.tabpg_SensorAlphaMax[i].Name = "tabpg_SensorAlphaMax";
  724.                 this.tabpg_SensorAlphaMax[i].Size = new System.Drawing.Size(208, 74);
  725.                 this.tabpg_SensorAlphaMax[i].TabIndex = 1;
  726.                 this.tabpg_SensorAlphaMax[i].Text = "Alpha Max";
  727.                 //
  728.                 //tbox_SensorAlphaMax
  729.                 //
  730.                 for(int ii = 0; ii < 7; ii++)
  731.                 {
  732.                     this.tbox_SensorAlphaMax[i][ii].Location = new System.Drawing.Point(35*ii,24);
  733.                     this.tbox_SensorAlphaMax[i][ii].Name = "tbox_SensorAlphaMax";
  734.                     this.tbox_SensorAlphaMax[i][ii].Size = new System.Drawing.Size(35, 20);
  735.                     this.tbox_SensorAlphaMax[i][ii].TabIndex = 3;
  736.                 }
  737.                 // 
  738.                 // tabpg_SensorVm
  739.                 // 
  740.                 for(int ii = 0; ii < 7; ii++)
  741.                     this.tabpg_SensorVm[i].Controls.Add(this.tbox_SensorVm[i][ii]);
  742.                 this.tabpg_SensorVm[i].Location = new System.Drawing.Point(4, 22);
  743.                 this.tabpg_SensorVm[i].Name = "tabpg_SensorVm";
  744.                 this.tabpg_SensorVm[i].Size = new System.Drawing.Size(208, 74);
  745.                 this.tabpg_SensorVm[i].TabIndex = 2;
  746.                 this.tabpg_SensorVm[i].Text = "Vm";
  747.                 //
  748.                 //tbox_SensorVm
  749.                 //
  750.                 for(int ii = 0; ii < 7; ii++)
  751.                 {
  752.                     this.tbox_SensorVm[i][ii].Location = new System.Drawing.Point(35*ii,24);
  753.                     this.tbox_SensorVm[i][ii].Name = "tbox_SensorVm";
  754.                     this.tbox_SensorVm[i][ii].Size = new System.Drawing.Size(35, 20);
  755.                     this.tbox_SensorVm[i][ii].TabIndex = 3;
  756.                 }
  757.                 // 
  758.                 // lbl_SensorSN
  759.                 //
  760.                 this.lbl_SensorSN[i].Location = new System.Drawing.Point(16, 136);
  761.                 this.lbl_SensorSN[i].Name = "lbl_SensorSN";
  762.                 this.lbl_SensorSN[i].TabIndex = 0;
  763.         }
  764.             // 
  765.             // TrackingSystemForm
  766.             // 
  767.             GetData();
  768.             this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  769.             this.ClientSize = new System.Drawing.Size(776, 230);
  770.             this.Controls.Add(this.tabctrl_TrackingSystem);
  771.             this.Name = "TrackingSystemForm";
  772.             this.Text = "PCI Bird Settings";
  773.             this.tabctrl_TrackingSystem.ResumeLayout(false);
  774.             this.tabpg_System.ResumeLayout(false);
  775.             this.gbox_BoardParams.ResumeLayout(false);
  776.             ((System.ComponentModel.ISupportInitialize)(this.nud_MeasRate)).EndInit();
  777.             this.tabpg_Xmtr.ResumeLayout(false);
  778.             this.gbox_XmtrParams.ResumeLayout(false);
  779.             this.gbox_XmtrRF.ResumeLayout(false);
  780.             for(int i = 0; i < numSensors; i++)
  781.             {
  782.                 this.tabpg_Sensor[i].ResumeLayout(false);
  783.                 this.gbox_SensorQualParams[i].ResumeLayout(false);
  784.                 this.gbox_SensorAA[i].ResumeLayout(false);
  785.                 this.gbox_SensorFilters[i].ResumeLayout(false);
  786.                 this.tabctrl_SensorAlpha[i].ResumeLayout(false);
  787.             }
  788.             this.btn_Update = new Button();
  789.             this.Controls.Add(this.btn_Update);
  790.             btn_Update.Text = "Update";
  791.             btn_Update.Size = new Size(100,30);
  792.             btn_Update.Location = new Point(0,200);
  793.             btn_Update.Click += new EventHandler(btn_Update_OnClick);
  794.             
  795.             this.ResumeLayout(false);
  796.  
  797.         }
  798.         #endregion
  799.  
  800.         private void btn_Update_OnClick(object sender, EventArgs e)
  801.         {
  802.             SetData();
  803.             GetData();
  804.         }
  805.  
  806.         private void GetData()
  807.         {
  808.             //Get Board Configuration
  809.             BoardConfig boardConfig = trackingSystem.board.GetBoardConfig();
  810.             this.lbl_BoardFR.Text = "Firmware Revision: " + boardConfig.firmwareRevision;
  811.             this.lbl_BoardFN.Text = "Firmware Number: " + boardConfig.firmwareNumber; 
  812.             this.lbl_BoardRev.Text = "Revision: " + boardConfig.revision; 
  813.             this.lbl_BoardType.Text = "Type: " + boardConfig.type; 
  814.             this.lbl_BoardSN.Text = "Serial Number: " + boardConfig.serialNumber; 
  815.             this.lbl_BoardModel.Text = "Model: " + boardConfig.modelString;
  816.  
  817.             //Get System Configuration
  818.             SystemConfig systemConfig = trackingSystem.GetSystemConfig();
  819.             this.nud_MeasRate.Value = (decimal)systemConfig.measurementRate;
  820.             this.rbtn_Inches.Checked = !Convert.ToBoolean(systemConfig.metric); 
  821.             this.rbtn_Millimeters.Checked = Convert.ToBoolean(systemConfig.metric);
  822.             if(systemConfig.powerLineFrequency.Equals(60.0))
  823.                 this.cbox_PLFreq.SelectedIndex = 0;
  824.             else
  825.                 this.cbox_PLFreq.SelectedIndex = 1;
  826.             this.cbox_AgcMode.SelectedIndex = (int)systemConfig.agcMode;
  827.  
  828.             //Get Xmtr Configuration
  829.             XmtrConfig xmtrConfig = trackingSystem.xmtr.GetXmtrConfig();
  830.             this.lbl_XmtrType.Text = "Type: " + xmtrConfig.type;
  831.             this.lbl_XmtrSN.Text = "Serial Number: " + xmtrConfig.serialNumber;
  832.  
  833.             //Get Xmtr Parameters
  834.             this.chkbox_XmtrXYZRF.Checked = Convert.ToBoolean(
  835.                                         trackingSystem.xmtr.XYZReferenceFrame.Get());
  836.             
  837.             AnglesReading rf = trackingSystem.xmtr.ReferenceFrame.Get(); 
  838.             this.tbox_XmtrRFroll.Text = rf.r.ToString();
  839.             this.tbox_XmtrRFelev.Text = rf.e.ToString();
  840.             this.tbox_XmtrRFazim.Text = rf.a.ToString();
  841.  
  842.             //create sensor parameter return types
  843.             for(int i = 0; i < numSensors; i++)
  844.             {
  845.                 //Get Sensor configuration
  846.                 this.tbox_SensorDCAdapt[i].Text = 
  847.                             trackingSystem.sensor[i].FilterDCAdaptive.Get().ToString(); 
  848.                 this.chkbox_SensorLC[i].Checked = trackingSystem.sensor[i].FilterLargeChange.Get();
  849.                 this.chkbox_SensorACNN[i].Checked = trackingSystem.sensor[i].FilterACNarrowNotch.Get();
  850.                 this.chkbox_SensorACWN[i].Checked = trackingSystem.sensor[i].FilterACWideNotch.Get();
  851.                 
  852.                 QualityParameters qualParam = trackingSystem.sensor[i].Quality.Get();
  853.                 this.tbox_SensorAlpha[i].Text = qualParam.filterAlpha.ToString();
  854.                 this.tbox_SensorSens[i].Text = qualParam.errorSensitivity.ToString();
  855.                 this.tbox_SensorSlope[i].Text = qualParam.errorSlope.ToString();
  856.                 this.tbox_SensorOffset[i].Text = qualParam.errorOffset.ToString();
  857.  
  858.                 this.cbox_SensorHemisphere[i].SelectedIndex = 
  859.                                         (int)trackingSystem.sensor[i].Hemisphere.Get();
  860.                 
  861.                 AnglesReading angleAlign = trackingSystem.sensor[i].AngleAlign.Get();
  862.                 this.tbox_SensorAAroll[i].Text = angleAlign.r.ToString();
  863.                 this.tbox_SensorAAelev[i].Text = angleAlign.e.ToString();
  864.                 this.tbox_SensorAAazim[i].Text = angleAlign.a.ToString();
  865.  
  866.                 AdaptiveParameters alphaParam = trackingSystem.sensor[i].FilterAlpha.Get(); 
  867.                 this.chkbox_SensorAO[i].Checked = Convert.ToBoolean(alphaParam.alphaOn);
  868.                 for(int ii = 0; ii < 7; ii++)
  869.                 {
  870.                     this.tbox_SensorAlphaMin[i][ii].Text = alphaParam.alphaMin[ii].ToString();
  871.                     this.tbox_SensorAlphaMax[i][ii].Text = alphaParam.alphaMax[ii].ToString();
  872.                     this.tbox_SensorVm[i][ii].Text = alphaParam.vm[ii].ToString();
  873.                 }
  874.  
  875.                 this.lbl_SensorSN[i].Text = "Serial Number: " + 
  876.                                             trackingSystem.sensor[i].SerialNumberRX.Get();
  877.  
  878.             }
  879.  
  880.         }
  881.  
  882.         private void SetData()
  883.         {
  884.             //Set System Configuration
  885.             trackingSystem.MeasurementRate.Set((double)this.nud_MeasRate.Value);
  886.             trackingSystem.Metric.Set(rbtn_Millimeters.Checked);
  887.             if(this.cbox_PLFreq.SelectedIndex.Equals(0))
  888.                 trackingSystem.LineFrequency.Set(60.0);
  889.             else
  890.                 trackingSystem.LineFrequency.Set(50.0);
  891.             trackingSystem.AGCMode.Set((AGC_MODE_TYPE)this.cbox_AgcMode.SelectedIndex);
  892.  
  893.     
  894.             //Set Xmtr Configuration
  895.             trackingSystem.xmtr.XYZReferenceFrame.Set(chkbox_XmtrXYZRF.Checked);
  896.  
  897.             AnglesReading rf = new AnglesReading();
  898.             rf.r = Convert.ToDouble(this.tbox_XmtrRFroll.Text);
  899.             rf.e = Convert.ToDouble(this.tbox_XmtrRFelev.Text);
  900.             rf.a = Convert.ToDouble(this.tbox_XmtrRFazim.Text);
  901.             trackingSystem.xmtr.ReferenceFrame.Set(rf);
  902.  
  903.             //Set Sensor Parameters
  904.             for(int i = 0; i < numSensors; i++)
  905.             {
  906.                 trackingSystem.sensor[i].FilterDCAdaptive.Set(Convert.ToDouble(
  907.                                             this.tbox_SensorDCAdapt[i].Text));
  908.                 trackingSystem.sensor[i].FilterLargeChange.Set(this.chkbox_SensorLC[i].Checked);
  909.                 trackingSystem.sensor[i].FilterACNarrowNotch.Set(this.chkbox_SensorACNN[i].Checked);
  910.                 trackingSystem.sensor[i].FilterACWideNotch.Set(this.chkbox_SensorACWN[i].Checked);
  911.  
  912.                 QualityParameters qualParam = new QualityParameters();
  913.                 qualParam.errorSlope = Convert.ToUInt16(this.tbox_SensorSlope[i].Text);
  914.                 qualParam.errorSensitivity = Convert.ToUInt16(this.tbox_SensorSens[i].Text);
  915.                 qualParam.errorOffset = Convert.ToUInt16(this.tbox_SensorOffset[i].Text);
  916.                 qualParam.filterAlpha = Convert.ToUInt16(this.tbox_SensorAlpha[i].Text);
  917.                 trackingSystem.sensor[i].Quality.Set(qualParam);
  918.  
  919.                 AnglesReading angleAlign = new AnglesReading();
  920.                 angleAlign.a = Convert.ToDouble(this.tbox_SensorAAazim[i].Text);
  921.                 angleAlign.e = Convert.ToDouble(this.tbox_SensorAAelev[i].Text);
  922.                 angleAlign.r = Convert.ToDouble(this.tbox_SensorAAroll[i].Text);
  923.                 trackingSystem.sensor[i].AngleAlign.Set(angleAlign);
  924.  
  925.                 trackingSystem.sensor[i].Hemisphere.Set(
  926.                             (HEMISPHERE_TYPE)this.cbox_SensorHemisphere[i].SelectedIndex);
  927.  
  928.                 AdaptiveParameters alphaParam = new AdaptiveParameters();
  929.                 alphaParam.alphaMin = new ushort[7];
  930.                 alphaParam.alphaMax = new ushort[7];
  931.                 alphaParam.vm = new ushort[7];
  932.                 for(int ii = 0; ii < 7; ii++)
  933.                 {
  934.                     alphaParam.alphaMin[ii] = Convert.ToUInt16(this.tbox_SensorAlphaMin[i][ii].Text);
  935.                     alphaParam.alphaMax[ii] = Convert.ToUInt16(this.tbox_SensorAlphaMax[i][ii].Text);
  936.                     alphaParam.vm[ii] = Convert.ToUInt16(this.tbox_SensorVm[i][ii].Text);
  937.                 }
  938.                 alphaParam.alphaOn = Convert.ToInt32(this.chkbox_SensorAO[i].Checked);
  939.                 trackingSystem.sensor[i].FilterAlpha.Set(alphaParam);
  940.             }
  941.         }
  942.  
  943.         private void tabPage1_Click(object sender, System.EventArgs e)
  944.         {
  945.         
  946.         }
  947.  
  948.         private void comboBox1_SelectedIndexChanged(object sender, System.EventArgs e)
  949.         {
  950.         
  951.         }
  952.  
  953.         private void label1_Click(object sender, System.EventArgs e)
  954.         {
  955.         
  956.         }
  957.  
  958.         private void radioButton1_CheckedChanged(object sender, System.EventArgs e)
  959.         {
  960.         
  961.         }
  962.  
  963.         private void numericUpDown1_ValueChanged(object sender, System.EventArgs e)
  964.         {
  965.         
  966.         }
  967.  
  968.         private void label1_Click_1(object sender, System.EventArgs e)
  969.         {
  970.         
  971.         }
  972.  
  973.         private void tabctrl_TrackingSystem_SelectedIndexChanged(object sender, System.EventArgs e)
  974.         {
  975.         
  976.         }
  977.  
  978.         private void textBox1_TextChanged(object sender, System.EventArgs e)
  979.         {
  980.         
  981.         }
  982.  
  983.         private void nud_SensorAAazim_ValueChanged(object sender, System.EventArgs e)
  984.         {
  985.         
  986.         }
  987.  
  988.         private void lbl_SensorSlope_Click(object sender, System.EventArgs e)
  989.         {
  990.         
  991.         }
  992.  
  993.         private void tabctrl_SensorAlpha_SelectedIndexChanged(object sender, System.EventArgs e)
  994.         {
  995.         
  996.         }
  997.  
  998.         private void groupBox1_Enter(object sender, System.EventArgs e)
  999.         {
  1000.         
  1001.         }
  1002.     }
  1003. }
  1004.